        {include file='header.html'}
        <link type="text/css" href="../../page/css/reset.css" rev="stylesheet" rel="stylesheet">
        <link type="text/css" href="../../page/css/kaoqin.css" rev="stylesheet" rel="stylesheet">
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery-1.7.2.js"></script>
        <script>
          function exp_xls(){
              $("#form1").attr("action","/reportexp2/?cls={$cls}");
              $("#form1").submit();
          }
          function list_type(){
              $("#form1").attr("action","/report2/");
              $("#form1").submit();
          }
        </script>

            <div id="content">
                <i class="con_l">&nbsp;</i>
                <i class="con_r">&nbsp;</i>
                <div class="main">
                    <div class="blank"></div>
                    <span class="vb">
                        <form action="" method="post" id="form1" name="form1">
                        {if !$is_hr}
                        <select id="select_level" name="select_level">
                           <option value='1' {if $params.select_level=='1' or $params.level=='1'}selected="selected"{/if}>直属下级</option>
                           <option value='2' {if $params.select_level=='2' or $params.level=='2'}selected="selected"{/if}>二级下属</option>
                           <option value='all' {if $params.select_level=='all' or $params.level=='all'}selected="selected"{/if}>所有下属</option>
                        </select>
                        {/if}
                        <select name="select_year" id="select_year">
                           {foreach from=$select_year item=v}
                           <option value="{$v}" {if $v==$params.select_year}selected="selected"{/if}>{$v}</option>
                           {/foreach}
                        </select>
                         <select name="select_month" id="select_month">
                           {foreach from=$select_month item=v}
                           <option value="{$v}" {if $v==$params.select_month}selected="selected"{/if}>{$v}</option>
                           {/foreach}
                        </select>
                        <select name="select_city" id="select_city">
                           <option value="0">所有城市</option>
                            {foreach from=$select_city item=v}
                           <option value="{$v}" {if $v==$params.select_city}selected="selected"{/if}>{$v}</option>
                           {/foreach}
                        </select>
                         <select name="select_department" id="select_department">

                        </select>
                        <input type="text" value="{$params.keywords}" size="15" name="keywords" placeholder="请输入姓名或工号"/>
                        <input class="btn" type="button" onclick="list_type()" value="搜索"/>
                        </form>
                    </span>
                    <span class="sv">
                        <!-- <i>&nbsp;&nbsp;显示列：</i>
                        <input type="checkbox" checked/>迟到 &nbsp;
                        <input type="checkbox" checked/>餐补 &nbsp;
                        <input type="checkbox"/>旷工&nbsp;
                        <input type="checkbox" checked/>公出 &nbsp;
                        <input type="checkbox" checked/>病假 &nbsp;
                        <input type="checkbox" checked/>年假 &nbsp;
                        <input type="checkbox" checked/>工时 &nbsp;
                        <input type="checkbox" checked/>加班工时 &nbsp;
                        <input type="checkbox" checked/>其他假 -->
                        <span class="xw">
                             <a onclick="exp_xls()"  href="javascript:void(0)">导出数据</a>
                             <span class="dd"></span>
                        </span>

                    </span>
                    <ul class="p p2" style="top:0px">
                        <!-- 第一个li添加fir这个class，最后一个li添加last这个class-->

                        <li class="s sfir">
                            <i class="i0 i5g">日期</i>
                            <i class="i0 i5g">员工</i>
                            <i class="i0 i2g">工号</i>
                            <i class="i0 i6g">部门</i>
                            <i class="i0 i3m">实际/应出勤率</i>
                            <i class="i0 i1g">餐补天数</i>
                            <i class="i0 i5g">餐费</i>
                            <i class="i0 i5g">迟到</i>
                            <i class="i0 i5g">旷工</i>
                            <i class="i0 i5g">公出</i>
                            <i class="i0 i5g">出差</i>
                            <i class="i0 i5g">事假</i>
                            <i class="i0 i5g">病假</i>
                            <i class="i0 i5g">年假</i>
                            <i class="i0 i5g">其他假</i>
                            <i class="i0 i3g">上月未清</i>
                            <i class="i0 i3g" title="1&#13;2&#13;3">未全勤</i>
                            <i class="i0 i5g">明细</i>

                            <div class="clear">riqi</div>
                        </li>
                        {if $userlist}
                        {foreach from=$userlist key=userid item=v}
                        <li class="s onhover">
                            <i class="i0 i5g">{$display_month}</i>
                            <i class="i0 i5g">{$v.name}</i>
                            <i class="i0 i2g">{$v.code}</i>
                            <i class="i0 i6g" title="{$v.department_name}">{$v.department_name}</i>
                            <i class="i0 i3m"><span style="color:#ff5e00;">{$v.work_act_day}</span>/{$work_att_day}</i>
                            <i class="i0 i1g">{$v.rice_day}</i>
                            <i class="i0 i5g">{$v.meal}</i>
                            <i class="i0 i5g">{if $v.oa_cd}{$v.oa_cd}{else}0{/if}</i>
                            <i class="i0 i5g">{if $v.oa_kg}{$v.oa_kg}{else}0{/if}</i>
                            <i class="i0 i5g" {if $v.oa_gc}title="{$v.oa_gc}小时"{/if}>{if $v.oa_gc}<span style="color:#ff5e00;">{$v.oa_gc_passed}</span>/{/if}{if $v.oa_gc}{$v.oa_gc}{else}0{/if}</i>
                            <i class="i0 i5g">{if $v.oa_cc}<span style="color:#ff5e00;">{$v.oa_cc_passed}</span>/{/if}{if $v.oa_cc}{$v.oa_cc}{else}0{/if}</i>
                            <i class="i0 i5g">{if $v.oa_sj}<span style="color:#ff5e00;">{$v.oa_sj_passed}</span>/{/if}{if $v.oa_sj}{$v.oa_sj}{else}0{/if}</i>
                            <i class="i0 i5g">{if $v.oa_bj}<span style="color:#ff5e00;">{$v.oa_bj_passed}</span>/{/if}{if $v.oa_bj}{$v.oa_bj}{else}0{/if}</i>
                            <i class="i0 i5g">{if $v.oa_nj}<span style="color:#ff5e00;">{$v.oa_nj_passed}</span>/{/if}{if $v.oa_nj}{$v.oa_nj}{else}0{/if}</i>
                            <i class="i0 i5g" title="{foreach from=$v.other_more item=d}{$d.leave_time}天{$d.type}&#10;{/foreach}">
                            {if $v.oa_oj}<span style="color:#ff5e00;">{$v.oa_oj_passed}</span>/{/if}{if $v.oa_oj}{$v.oa_oj}{else}0{/if}</i>
                            <i class="i0 i3g" style="width:53px;" title="{foreach from=$v.oa_prexj_info key=k item=d}{$d}&#13;{/foreach}">
                            {foreach name=childs from=$v.oa_prexj key=k item=d}
                            {$d}{if $smarty.foreach.childs.last=="1"}{else}/{/if}
                            {/foreach}
                            </i>
                            <i class="i0 i3g">{$v.work_act_not_day}</i>
                            <i class="i0 i5g"><a href="{$v.oa_url}" target="_blank">查看</a></i>
                            <div class="clear"></div>
                        </li>
                        {/foreach}
                        {/if}
                    </ul>
                    {if $userlist}
                    <div class="p p3" style="text-align:center" align="center">
                        {include file='multipage.html'}
                    </div>
                    {else}
                    <div class="p msg_p3" style="text-align:center" align="center">
                    没有数据！
                    </div>
                    {/if}
                    <div class="c"></div>
                </div>
                    <div class="c"></div>
            </div>

            <script language="javascript">
            var kaoqing = {
                get_user_kaoqing_detail:function(uid) {
                    //年月份
                    yearmonth = $("#select_year").val()+''+$("#select_month").val();
                    //$(".tan").toggle(1000);
                    var itop=(document.documentElement.clientHeight-o.height())/2+document.documentElement.scrollTop;
                    var ileft=(document.documentElement.clientWidth-o.width())/2+document.documentElement.scrollLeft;
                    $("#tan").css({
                        "position":"absolute",
                        "top":itop+"px",
                        "left":ileft+"px"
                    }).show();
                    $("#tan").toggle(1000);
                }
            };
            $(function(){
                $("#select_level").change(function(){
                    var base_domain = '{$base_domain}';
                    var level = $(this).children('option:selected').val();
                    window.location.href=base_domain+"?level="+level;
                });
                var city_department = '{$citydepartment}';
                if(!city_department) {
                    city_department = '[]';
                }
                var json = eval('(' + city_department + ')');

                $("#select_city").change(function(){
                    $("#select_department option").remove();
                    $("#select_department").append("<option value='0''>所有部门</option>");
                    city_name = $(this).val();
                    list = json[city_name];
                    for(var i=0;i<list.length;i++) {
                        $("#select_department").append("<option value="+list[i].department_id+">"+list[i].department_name+"</option>");;
                    }
                });
                $("#select_department option").remove();
                $("#select_department").append("<option value='0''>所有部门</option>");
                city_name = $("#select_city").val();
                list = json[city_name];
                if(list) {
                    params_select_department = '{$params.select_department}';
                    for(var i=0;i<list.length;i++) {
                        if(params_select_department==list[i].department_id) {
                            $("#select_department").append("<option selected='selected' value="+list[i].department_id+">"+list[i].department_name+"</option>");
                        }else{
                            $("#select_department").append("<option value="+list[i].department_id+">"+list[i].department_name+"</option>");
                        }
                    }
                }
            });
            </script>
            {include file='footer.html'}

